import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';
import { IsOptional, Min } from 'class-validator';

export class GetOrganizationListAdminReqDto {
  @ApiProperty({ description: '上级组织Uuid', required: false })
  @Type(() => Number)
  @Min(1, { message: '上级组织编号格式不正确' })
  @IsOptional()
  readonly parent_id: number;
}
